package rapier.sso.common.exception;

public final class CommonErrorType implements ErrorType {

	/**
	 * 错误类型码
	 */
	private int code;
	/**
	 * 错误类型描述信息
	 */
	private String mesg;

	public CommonErrorType(String mesg) {
		code = 500;
		this.mesg = mesg;
	}

	public CommonErrorType(int code, String mesg) {
		this.code = code;
		this.mesg = mesg;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMesg() {
		return mesg;
	}
}